//
//  common.swift
//  小蜗牛_新浪微博
//
//  Created by 周冬冬 on 16/6/25.
//  Copyright © 2016年 我的mac. All rights reserved.
//

import UIKit
//
let SwiftRootVCNoti = "SwiftRootVCNoti"

// 微博相关信息参数
let APPKEY = "3157200131"
let APPSECRET = "fd9358f38b8c19d36008f70de570993f"
let REDIRECT_URI = "http://www.baidu.com"
//屏幕的宽
let kScreenW = UIScreen.mainScreen().bounds.width

let kScreenH = UIScreen.mainScreen().bounds.height

//主体颜色
let ThemeColor = UIColor.orangeColor()

func RBG(red: CGFloat, green: CGFloat, blue: CGFloat)->UIColor{

   return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1.0)

}

//随机颜色

func RandomColor()->UIColor{


    let r = CGFloat(random()%255)
    let g = CGFloat(random()%255)
    let b = CGFloat(random()%255)


return RBG(r, green: g, blue: b)

}































